﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_FriendLink.Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>管理友情链接</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<link href="../css/style.css" rel="stylesheet" type="text/css">
<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $("#iptSearch").click(function () {
            document.location.href = "?class_id=" + $("#ddlMenu").val();
        });
        $("#chkAll").click(function () {
            $("span.ck_ID_list input").attr("checked", ($(this).attr("checked")==true));
        });
    });
</script>
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>模块&nbsp;&gt;&nbsp;友情链接管理&nbsp;&gt;&nbsp;友情链接列表</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="../FriendLinkClass/Admin.aspx" class="sub_menu">友情链接位置</a></label> | </td>
                        <td><label><a href="./Admin.aspx" class="sub_menu_selected">友情链接列表</a></label> | </td>
                        <td><label><a href="./Add.aspx" class="sub_menu">添加友情链接</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>


<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">

    <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DDE9FF">
     <tr>
        <td bgcolor="#ecf5ff">
            <table  width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                  <td><img src="../images/cms-ico2.gif" width="16" height="16" align="absmiddle">
                  筛选：
                  <asp:DropDownList ID="ddlMenu" runat="server" ></asp:DropDownList>
                  </td>
                  <td align="right">
                    <table border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="right" valign="middle" width="50"> 
                          <input id="iptSearch" type="button" value=" 搜索 " class="bt" />
                          <!-- 高级↓ //-->
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
            </table>
        </td>
     </tr>
    </table>
    
    

          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            <tr>
              <td width="23" height="25" nowrap bgcolor="#DDE9FF"></td>        
              <td align="center" width="30%" nowrap bgcolor="#DDE9FF"><span class="line">当前页面</span></td>
              <td align="center" width="40%" bgcolor="#DDE9FF"><span class="line">链接对象</span></td>
              <td align="center" width="10%" nowrap bgcolor="#DDE9FF"><span class="line">页面编号</span></td>
              <td align="center" width="10%" bgcolor="#DDE9FF"><span class="line">排序数字</span></td>
              <td align="center" width="10%" nowrap bgcolor="#DDE9FF"><span class="line">操作</span></td>
            </tr>
            
           <asp:Repeater ID="rptAdmin" runat="server" OnItemDataBound="rptAdmin_ItemDataBound">
              <ItemTemplate>
                <tr align="center">
                  <td nowrap  bgcolor="#F4FBFF">
                    <asp:CheckBox ID="ID_list" CssClass="ck_ID_list" runat="server" />
                    <asp:HiddenField ID="hidid" runat="server" Value='<%#Eval("id") %>' />
                  </td> 
                  <td nowrap  bgcolor="#F4FBFF">
                    <asp:Label ID="Label_name" runat="server"></asp:Label>
                  </td>
                  <td  bgcolor="#F4FBFF" title='<%#Eval("description") %>'><a href="<%#Eval("target_url") %>" target="_blank"><%#Eval("text") %></a></td>
                  <td nowrap  bgcolor="#F4FBFF">
                    <%#Eval("class_id") %>
                  </td>
                  <td nowrap  bgcolor="#F4FBFF">
                    <%#Eval("order") %>
                  </td>                 
                  <td align="center" nowrap bgcolor="#F4FBFF"><a href='Edit.aspx?id=<%#Eval("id") %>'>编辑</a> | <a href='?t=delete&id=<%#Eval("id") %>' onClick="return window.confirm('确定删除 [<%#Eval("id") %>] 吗?');">删除</a></td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
            <tr>
              <td height="25" colspan="5" bgcolor="#F4FBFF">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <input name="chkAll" type="checkbox" id="chkAll" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
                            <img for="chkAll" src="../images/cms-ico12.gif" border="0">
                            <asp:ImageButton ID="ImageButton_all_del" runat="server" 
                                ImageUrl="../images/cms-ico10.gif" style="width: 63px" 
                                onclick="ImageButton_all_del_Click" OnClientClick="return window.confirm('确定删除这些内容吗?');"  />                        
                        </td>
                        <td class="pager">
                            <asp:Literal ID="litPager" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
              </td>
            </tr>
          </table>
 
</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>